package com.yuyou.tas.lesson.service;


import com.yuyou.tas.service.api.lesson.dto.DtoLessonMaterial;
import com.yuyou.tas.service.api.lesson.dto.DtoLessonMaterialWithName;
import com.yuyou.tas.service.api.lesson.entity.Lesson;
import com.yuyou.tas.service.api.lesson.entity.LessonMaterial;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.Pagination;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;


public interface ILessonMaterialService {

//    selectByPrimaryKey(Long id);

    ResBoolSimpleInfo addLessonMaterial(Long lessonId ,String[] materialIds,Integer isStan, Long pId, LoginRedisObj user, Long organId)throws Exception;
//    ResBoolSimpleInfo updatMaterial(ReqUpdateBaseMaterial chapter, Long pId, Integer isStan, LoginRedisObj user);
    ResBoolSimpleInfo delLessonMaterial(Long id);

    int findLessonMaterialCount(Pagination<DtoLessonMaterial> queryPgn);
    List<DtoLessonMaterial> findLessonMaterialPageList(Pagination<DtoLessonMaterial> queryPgn);

    List<LessonMaterial> findLeMatByLessonId(Long lessonId);
    
    LessonMaterial selectByPKandOrgan(Long id, Long authOrganizationId);
	int insert(LessonMaterial record);
	
	ResBoolSimpleInfo<String> copylessonMaterial(Long pLessonId,Lesson lesson);

    LessonMaterial findByLessonMaterialId(Long lessonId , Long m_id );

    List<DtoLessonMaterialWithName> findLeMatNameByLessonId(Long lessonId);

    List<String> findBaseMatInLesson(Long baseMaterialId);

    Integer findCountBaseMatInLesson(Long baseMaterialId);

    void delByless(Long lessonId);
	
}